package com.aynu.Service.impl;

import com.aynu.Service.AnimationCharacterService;
import com.aynu.dao.AnimationCharacterDao;
import com.aynu.entities.AnimationCharacter;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class AnimationCharacterServiceimpl  implements AnimationCharacterService {

    @Resource
    private AnimationCharacterDao animationCharacterDao;
    public int create(AnimationCharacter animationcharacter) {
        return animationCharacterDao.create(animationcharacter);
    }

    //加@Param
    public AnimationCharacter getAnimationCharacterById(@Param("id") Long id) {
        return animationCharacterDao.getAnimationCharacterById(id);
    }
}
